<!DOCTYPE html>
<html >
<head>

    <!--[if lt IE 9]>
        <style>body {display: none; background: none !important} </style>
        <meta http-equiv="Refresh" Content="0; url=//outdatedbrowser.com/" />
    <![endif]-->

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="format-detection" content="telephone=no" />
<meta name="author" content="张树淼" />



<meta name="description" content="搭建一个基于 github 的 HEXO 个人博客">
<meta name="keywords" content="hexo">
<meta property="og:type" content="article">
<meta property="og:title" content="如何搭建HEOX个人博客">
<meta property="og:url" content="http://yoursite.com/2018/09/28/搭建HEXO个人博客/index.html">
<meta property="og:site_name" content="Sapling">
<meta property="og:description" content="搭建一个基于 github 的 HEXO 个人博客">
<meta property="og:locale" content="default">
<meta property="og:updated_time" content="2018-10-24T15:40:43.056Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="如何搭建HEOX个人博客">
<meta name="twitter:description" content="搭建一个基于 github 的 HEXO 个人博客">

<link rel="apple-touch-icon" href= "/apple-touch-icon.png">


    <link rel="alternate" href="/atom.xml" title="Sapling" type="application/atom+xml">



    <link rel="shortcut icon" href="/favicon.png">



    <link href="//cdn.bootcss.com/animate.css/3.5.1/animate.min.css" rel="stylesheet">



    <link href="//cdn.bootcss.com/fancybox/2.1.5/jquery.fancybox.min.css" rel="stylesheet">



    <script src="//cdn.bootcss.com/pace/1.0.2/pace.min.js"></script>
    <link href="//cdn.bootcss.com/pace/1.0.2/themes/blue/pace-theme-minimal.css" rel="stylesheet">


<link rel="stylesheet" href="/css/style.css">



<link href="//cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">


<title>如何搭建HEOX个人博客 | Sapling</title>

<script src="//cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="//cdn.bootcss.com/clipboard.js/1.5.10/clipboard.min.js"></script>

<script>
    var yiliaConfig = {
        fancybox: true,
        animate: true,
        isHome: false,
        isPost: true,
        isArchive: false,
        isTag: false,
        isCategory: false,
        fancybox_js: "//cdn.bootcss.com/fancybox/2.1.5/jquery.fancybox.min.js",
        scrollreveal: "//cdn.bootcss.com/scrollReveal.js/3.1.4/scrollreveal.min.js",
        search: true
    }
</script>


    <script> yiliaConfig.jquery_ui = [false]; </script>



    <script> yiliaConfig.rootUrl = "\/";</script>






</head>
<body>
  <div id="container">
    <div class="left-col">
    <div class="overlay"></div>
<div class="intrude-less">
    <header id="header" class="inner">
        <a href="/" class="profilepic">
            <img src="/img/avatar1.png" class="animated zoomIn">
        </a>
        <hgroup>
          <h1 class="header-author"><a href="/">张树淼</a></h1>
        </hgroup>

        
        <p class="header-subtitle">生活没有奇迹, 只有轨迹 !</p>
        

        
            <form id="search-form">
            <input type="text" id="local-search-input" name="q" placeholder="search..." class="search form-control" autocomplete="off" autocorrect="off" searchonload="false" />
            <i class="fa fa-times" onclick="resetSearch()"></i>
            </form>
            <div id="local-search-result"></div>
            <p class='no-result'>No results found <i class='fa fa-spinner fa-pulse'></i></p>
        


        
            <div id="switch-btn" class="switch-btn">
                <div class="icon">
                    <div class="icon-ctn">
                        <div class="icon-wrap icon-house" data-idx="0">
                            <div class="birdhouse"></div>
                            <div class="birdhouse_holes"></div>
                        </div>
                        <div class="icon-wrap icon-ribbon hide" data-idx="1">
                            <div class="ribbon"></div>
                        </div>
                        
                        <div class="icon-wrap icon-link hide" data-idx="2">
                            <div class="loopback_l"></div>
                            <div class="loopback_r"></div>
                        </div>
                        
                        
                        <div class="icon-wrap icon-me hide" data-idx="3">
                            <div class="user"></div>
                            <div class="shoulder"></div>
                        </div>
                        
                    </div>
                    
                </div>
                <div class="tips-box hide">
                    <div class="tips-arrow"></div>
                    <ul class="tips-inner">
                        <li>菜单</li>
                        <li>标签</li>
                        
                        <li>友情链接</li>
                        
                        
                        <li>关于我</li>
                        
                    </ul>
                </div>
            </div>
        

        <div id="switch-area" class="switch-area">
            <div class="switch-wrap">
                <section class="switch-part switch-part1">
                    <nav class="header-menu">
                        <ul>
                        
                            <li><a href="/">主页</a></li>
                        
                            <li><a href="/archives/">所有文章</a></li>
                        
                            <li><a href="/tags/">标签云</a></li>
                        
                            <li><a href="/about/">关于我</a></li>
                        
                        </ul>
                    </nav>
                    <nav class="header-nav">
                        <ul class="social">
                            
                                <a class="fa Email" href="mailto:123@123.com" title="Email"></a>
                            
                                <a class="fa GitHub" href="https://github.com/shumiaozhang" title="GitHub"></a>
                            
                                <a class="fa RSS" href="/atom.xml" title="RSS"></a>
                            
                                <a class="fa CSDN" href="https://blog.csdn.net/zsm4623" title="CSDN"></a>
                            
                        </ul>
                    </nav>
                </section>
                
                
                <section class="switch-part switch-part2">
                    <div class="widget tagcloud" id="js-tagcloud">
                        <ul class="tag-list"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Web-API/">Web API</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/hexo/">hexo</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/jQuery教程/">jQuery教程</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/上传文件/">上传文件</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/跨域/">跨域</a></li></ul>
                    </div>
                </section>
                
                
                
                <section class="switch-part switch-part3">
                    <div id="js-friends">
                    
                      <a class="main-nav-link switch-friends-link" href="https://hexo.io">Hexo</a>
                    
                      <a class="main-nav-link switch-friends-link" href="https://pages.github.com/">GitHub</a>
                    
                      <a class="main-nav-link switch-friends-link" href="http://moxfive.xyz/">MOxFIVE</a>
                    
                    </div>
                </section>
                

                
                
                <section class="switch-part switch-part4">
                
                    <div id="js-aboutme">专注于前端</div>
                </section>
                
            </div>
        </div>
    </header>                
</div>
    </div>
    <div class="mid-col">
      <nav id="mobile-nav">
      <div class="overlay">
          <div class="slider-trigger"></div>
          <h1 class="header-author js-mobile-header hide"><a href="/" title="回到主页">张树淼</a></h1>
      </div>
    <div class="intrude-less">
        <header id="header" class="inner">
            <a href="/" class="profilepic">
                <img src="/img/avatar1.png" class="animated zoomIn">
            </a>
            <hgroup>
              <h1 class="header-author"><a href="/" title="回到主页">张树淼</a></h1>
            </hgroup>
            
            <p class="header-subtitle">生活没有奇迹, 只有轨迹 !</p>
            
            <nav class="header-menu">
                <ul>
                
                    <li><a href="/">主页</a></li>
                
                    <li><a href="/archives/">所有文章</a></li>
                
                    <li><a href="/tags/">标签云</a></li>
                
                    <li><a href="/about/">关于我</a></li>
                
                <div class="clearfix"></div>
                </ul>
            </nav>
            <nav class="header-nav">
                        <ul class="social">
                            
                                <a class="fa Email" target="_blank" href="mailto:123@123.com" title="Email"></a>
                            
                                <a class="fa GitHub" target="_blank" href="https://github.com/shumiaozhang" title="GitHub"></a>
                            
                                <a class="fa RSS" target="_blank" href="/atom.xml" title="RSS"></a>
                            
                                <a class="fa CSDN" target="_blank" href="https://blog.csdn.net/zsm4623" title="CSDN"></a>
                            
                        </ul>
            </nav>
        </header>                
    </div>
    <link class="menu-list" tags="标签" friends="友情链接" about="关于我"/>
</nav>
      <div class="body-wrap"><article id="post-搭建HEXO个人博客" class="article article-type-post" itemscope itemprop="blogPost">
  
    <div class="article-meta">
      <a href="/2018/09/28/搭建HEXO个人博客/" class="article-date">
      <time datetime="2018-09-28T03:55:07.000Z" itemprop="datePublished">2018-09-28</time>
</a>


    </div>
  
  <div class="article-inner">
    
      <input type="hidden" class="isFancy" />
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      如何搭建HEOX个人博客
    </h1>
  

      </header>
      
      <div class="article-info article-info-post">
        
    <div class="article-category tagcloud">
    <a class="article-category-link" href="/categories/hexo/">hexo</a>
    </div>


        
    <div class="article-tag tagcloud">
        <ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/hexo/">hexo</a></li></ul>
    </div>

        <div class="clearfix"></div>
      </div>
      
    
    <div class="article-entry" itemprop="articleBody">
      
          
        <h1 id="搭建一个基于-github-的-HEXO-个人博客"><a href="#搭建一个基于-github-的-HEXO-个人博客" class="headerlink" title="搭建一个基于 github 的 HEXO 个人博客"></a>搭建一个基于 github 的 HEXO 个人博客</h1><h2 id="需要的环境"><a href="#需要的环境" class="headerlink" title="需要的环境"></a>需要的环境</h2><ol>
<li>node<ol>
<li>node 就是一个 js 的运行环境而已</li>
<li>搭建博客需要用到一个辅助工具 <code>hexo-cli</code></li>
</ol>
</li>
<li>npm<ol>
<li>是包管理器</li>
<li>在安装 node 的时候会自动一并的安装好</li>
<li>资源服务器在国外,所以在使用会有可能已经提交了,但没有显示出来,只要等待一些时间即可。</li>
<li>常用指令<ol>
<li><code>npm install 包名</code> 或者 <code>npm i 包名</code>    =&gt; 下载</li>
<li><code>npm uninstall 包名</code>  =&gt; 卸载</li>
<li><code>npm i 包名@版本号</code>  =&gt; 下载执行版本的包</li>
</ol>
</li>
<li><code>npm i</code>  =&gt; 会检索当前文件夹下面的 package.json 文件<ul>
<li>直接下载所有依赖</li>
</ul>
</li>
<li>之所以使用它，是因为在使用 <code>hexo-cli</code> 这个工具的时候，也要下载一些依赖</li>
</ol>
</li>
<li>github 的账号<ol>
<li>因为目前做的是基于 github 的，所以一定要有一个账号</li>
<li>有一天你作用在自己的服务器，自己的域名上面</li>
</ol>
</li>
<li>git 环境<ol>
<li>用来上传我们写的内容的</li>
</ol>
</li>
</ol>
<h2 id="部署一个开发环境"><a href="#部署一个开发环境" class="headerlink" title="部署一个开发环境"></a>部署一个开发环境</h2><ul>
<li>这个环境只需要一次就可以了</li>
<li>只需要一个东西</li>
<li>hexo-cli</li>
<li>怎么安装<ol>
<li>用 npm 去下载这个 hexo-cli 脚手架  <code>npm i -g hexo-cli</code></li>
<li>这个环境就安装完成了</li>
<li>接下来就是进行 hexo 博客的搭建了</li>
<li><code>hexo -v</code> 如果能出现版本号就是安装成功了</li>
</ol>
</li>
</ul>
<h2 id="开始搭建博客"><a href="#开始搭建博客" class="headerlink" title="开始搭建博客"></a>开始搭建博客</h2><h3 id="第一次搭建"><a href="#第一次搭建" class="headerlink" title="第一次搭建"></a>第一次搭建</h3><ol>
<li><p>找到一个你喜欢的位置，放置一个文件夹，在文件夹内部打开 cmd </p>
</li>
<li><p>初始化一个 博客的文件夹结构（hexo-cli帮我们做）</p>
<ul>
<li>会帮我们自动搭建好一个内容的结构 <code>hexo init</code></li>
<li>会自动帮我们下载依赖包 npm i</li>
<li>已经完成就不需要关了（暂时）</li>
</ul>
</li>
<li><p>是启动一个本地服务器，可以本地预览我的博客</p>
<ul>
<li><code>hexo s</code> 这个指令启动本地服务器</li>
</ul>
</li>
<li><p>把他上传到 github，做成一个线上的网站来看，创建一个仓库</p>
<ul>
<li>一个 github 账号只能出一个 博客</li>
<li>仓库名称必须是 <code>你的github账号.github.io</code></li>
<li>去hexo的文件夹中配置你的仓库信息</li>
</ul>
</li>
<li><p>配置仓库信息</p>
<ul>
<li>找到 config.yml 的文件</li>
<li>拉倒最下面</li>
<li>找到 type<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line">deploy:</span><br><span class="line">  type: git</span><br><span class="line">  repository: git@github.com:cyfresh/cyfresh.github.io.git</span><br><span class="line">  branch: master</span><br></pre></td></tr></table></figure>
</li>
</ul>
</li>
<li><p>上传文件</p>
<ul>
<li><code>hexo generate</code> 部署那些文件准备上线 简写 <code>hexo g</code><ul>
<li>有可能会报错</li>
<li>如果报错了 <code>npm i hexo</code></li>
<li>然后重新执行 <code>hexo g</code></li>
</ul>
</li>
<li>正式上传 <code>hexo deploy</code> 这个是上传的指令 简写 <code>hexo d</code><ul>
<li>有可能会报错</li>
<li>如果报错了 <code>npm i hexo-deployer-git</code></li>
<li>然后重新执行 <code>hexo g</code> 然后 <code>hexo d</code></li>
</ul>
</li>
</ul>
</li>
<li><p>上传成功</p>
<ul>
<li>线上打开了</li>
<li>你的github账户.github.io</li>
<li>settings里面直接点击</li>
</ul>
</li>
<li><p>注意：</p>
<ul>
<li>因为 github 的服务器也在国外</li>
<li>有的时候可能你写完文章上传了，但是你去页面上看没有,过一会就会看到</li>
</ul>
</li>
</ol>
<h3 id="后期书写和上传"><a href="#后期书写和上传" class="headerlink" title="后期书写和上传"></a>后期书写和上传</h3><ol>
<li>找到之前建立博客的文件夹，在文件夹内部打开 cmd</li>
<li>新建一片文章 <code>hexo new 文件名</code></li>
<li>直接找到文章还是书写</li>
<li>进行本地测试调试(开启服务器,查看<code>第一次搭建的第三步</code>)</li>
<li>上传内容<ul>
<li><code>hexo g</code> </li>
<li><code>hexo d</code></li>
</ul>
</li>
</ol>
<h2 id="设置一个皮肤"><a href="#设置一个皮肤" class="headerlink" title="设置一个皮肤"></a>设置一个皮肤</h2><ol>
<li>百度一下，找到一个自己喜欢的皮肤主题</li>
<li>克隆下来(git clone + 主题地址)</li>
<li>克隆下来以后是一个 themes 文件夹，我们要找到这个文件夹里面的内容找主题名称的文件夹（next）</li>
<li>把 next 这个文件夹放在我们博客的目录内<code>blog/themes</code>,其他的主题颜色类似,只要最终放在themes文件夹即可</li>
<li>设置主题，来到 config.yml 文件内部（这个是对 hexo 进行的配置）<ul>
<li>找到 <code>theme: landscape</code></li>
<li>把后面的名称改成你的主题名称 next</li>
</ul>
</li>
<li>在 themes/next/config.yml 的文件，这个文件是对主题进行的一些配置</li>
<li>next主题下载地址: <a href="https://github.com/iissnan/hexo-theme-next themes/next" target="_blank" rel="noopener">next主题名下载地址</a></li>
<li>hexo-theme-yelee主题下载地址: <a href="https://github.com/MOxFIVE/hexo-theme-yelee" target="_blank" rel="noopener">hexo-theme-yelee主题名下载地址</a></li>
</ol>

      
    </div>
    
  </div>
  
    
    <div class="copyright">
        <p><span>本文标题:</span><a href="/2018/09/28/搭建HEXO个人博客/">如何搭建HEOX个人博客</a></p>
        <p><span>文章作者:</span><a href="/" title="回到主页">张树淼</a></p>
        <p><span>发布时间:</span>2018-09-28, 11:55:07</p>
        <p><span>最后更新:</span>2018-10-24, 23:40:43</p>
        <p>
            <span>原始链接:</span><a class="post-url" href="/2018/09/28/搭建HEXO个人博客/" title="如何搭建HEOX个人博客">http://yoursite.com/2018/09/28/搭建HEXO个人博客/</a>
            <span class="copy-path" data-clipboard-text="原文: http://yoursite.com/2018/09/28/搭建HEXO个人博客/　　作者: 张树淼" title="点击复制文章链接"><i class="fa fa-clipboard"></i></span>
            <script> var clipboard = new Clipboard('.copy-path'); </script>
        </p>
        <p>
            <span>许可协议:</span><i class="fa fa-creative-commons"></i> <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/" title="CC BY-NC-SA 4.0 International" target = "_blank">"署名-非商用-相同方式共享 4.0"</a> 转载请保留原文链接及作者。
        </p>
    </div>



    <nav id="article-nav">
        
            <div id="article-nav-newer" class="article-nav-title">
                <a href="/2018/09/29/跨域/">
                    跨域
                </a>
            </div>
        
        
    </nav>

  
</article>

    <div id="toc" class="toc-article">
        <strong class="toc-title">文章目录</strong>
        
            <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#搭建一个基于-github-的-HEXO-个人博客"><span class="toc-number">1.</span> <span class="toc-text">搭建一个基于 github 的 HEXO 个人博客</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#需要的环境"><span class="toc-number">1.1.</span> <span class="toc-text">需要的环境</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#部署一个开发环境"><span class="toc-number">1.2.</span> <span class="toc-text">部署一个开发环境</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#开始搭建博客"><span class="toc-number">1.3.</span> <span class="toc-text">开始搭建博客</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#第一次搭建"><span class="toc-number">1.3.1.</span> <span class="toc-text">第一次搭建</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#后期书写和上传"><span class="toc-number">1.3.2.</span> <span class="toc-text">后期书写和上传</span></a></li></ol></li><li class="toc-item toc-level-2"><a class="toc-link" href="#设置一个皮肤"><span class="toc-number">1.4.</span> <span class="toc-text">设置一个皮肤</span></a></li></ol></li></ol>
        
    </div>
    <style>
        .left-col .switch-btn,
        .left-col .switch-area {
            display: none;
        }
        .toc-level-3 i,
        .toc-level-3 ol {
            display: none !important;
        }
    </style>

    <input type="button" id="tocButton" value="隐藏目录"  title="点击按钮隐藏或者显示文章目录">

    <script>
        yiliaConfig.toc = ["隐藏目录", "显示目录", !!"false"];
    </script>



    
<div class="share">
    
        <div class="bdsharebuttonbox">
            <a href="#" class="fa fa-twitter bds_twi" data-cmd="twi" title="分享到推特"></a>
            <a href="#" class="fa fa-weibo bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
            <a href="#" class="fa fa-qq bds_sqq" data-cmd="sqq" title="分享给 QQ 好友"></a>
            <a href="#" class="fa fa-files-o bds_copy" data-cmd="copy" title="复制网址"></a>
            <a href="#" class="fa fa fa-envelope-o bds_mail" data-cmd="mail" title="通过邮件分享"></a>
            <a href="#" class="fa fa-weixin bds_weixin" data-cmd="weixin" title="生成文章二维码"></a>
            <a href="#" class="fa fa-share-alt bds_more" data-cmd="more"></i></a>
        </div>
        <script>
            window._bd_share_config={
                "common":{"bdSnsKey":{},"bdText":"如何搭建HEOX个人博客　| Sapling　","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"24"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];
        </script>
    

    
</div>







    
        <section class="youyan" id="comments">
    <script>
        var loadComment = function(){
            var d = document, s = d.createElement('script');
            s.src = 'http://v2.uyan.cc/code/uyan.js?uid=';
            (d.head || d.body).appendChild(s);
        }
    </script>
    
    <script> loadComment(); </script>

    <div id="uyan_frame"></div>
</section>
    




    <div class="scroll" id="post-nav-button">
        
            <a href="/2018/09/29/跨域/" title="上一篇: 跨域">
                <i class="fa fa-angle-left"></i>
            </a>
        

        <a title="文章列表"><i class="fa fa-bars"></i><i class="fa fa-times"></i></a>

        
            <a href="/" title="回到主页"><i class="fa fa-home"></i></a>
        
    </div>

    <ul class="post-list"><li class="post-list-item"><a class="post-list-link" href="/2019/12/17/使用base64形式上传文件/">使用base64形式上传文件</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/12/05/页面显示隐藏visibilitychange事件/">页面显示隐藏visibilitychange事件</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/12/04/关于hexo的一些内容/">关于hexo的一些内容</a></li><li class="post-list-item"><a class="post-list-link" href="/2019/12/04/hello-world/">Hello World</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/10/03/jQuery/">jQuery</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/09/29/跨域/">跨域</a></li><li class="post-list-item"><a class="post-list-link" href="/2018/09/28/搭建HEXO个人博客/">如何搭建HEOX个人博客</a></li></ul>




    <script>
        
    </script>
</div>
      <footer id="footer">
    <div class="outer">
        <div id="footer-info">
            <div class="footer-left">
                <i class="fa fa-copyright"></i> 
                2016-2019 张树淼
            </div>
            <div class="footer-right">
                <a href="http://hexo.io/" target="_blank" title="快速、简洁且高效的博客框架">Hexo</a>  Theme <a href="https://github.com/MOxFIVE/hexo-theme-yelee" target="_blank" title="简而不减 Hexo 双栏博客主题  v3.5">Yelee</a> by MOxFIVE <i class="fa fa-heart animated infinite pulse"></i>
            </div>
        </div>
        
            <div class="visit">
                
                    <span id="busuanzi_container_site_pv" style='display:none'>
                        <span id="site-visit" title="本站到访数"><i class="fa fa-user" aria-hidden="true"></i><span id="busuanzi_value_site_uv"></span>
                        </span>
                    </span>
                
                
                    <span>| </span>
                
                
                    <span id="busuanzi_container_page_pv" style='display:none'>
                        <span id="page-visit"  title="本页阅读量"><i class="fa fa-eye animated infinite pulse" aria-hidden="true"></i><span id="busuanzi_value_page_pv"></span>
                        </span>
                    </span>
                
            </div>
        
    </div>
</footer>
    </div>
    
<script data-main="/js/main.js" src="//cdn.bootcss.com/require.js/2.2.0/require.min.js"></script>

    <script>
        $(document).ready(function() {
            var iPad = window.navigator.userAgent.indexOf('iPad');
            if (iPad > -1 || $(".left-col").css("display") === "none") {
                var bgColorList = ["#9db3f4", "#414141", "#e5a859", "#f5dfc6", "#c084a0", "#847e72", "#cd8390", "#996731"];
                var bgColor = Math.ceil(Math.random() * (bgColorList.length - 1));
                $("body").css({"background-color": bgColorList[bgColor], "background-size": "cover"});
            }
            else {
                var backgroundnum = 1;
                var backgroundimg = "url(/background/bg-x.jpg)".replace(/x/gi, Math.ceil(Math.random() * backgroundnum));
                $("body").css({"background": backgroundimg, "background-attachment": "fixed", "background-size": "cover"});
            }
        })
    </script>





<div class="scroll" id="scroll">
    <a href="#" title="返回顶部"><i class="fa fa-arrow-up"></i></a>
    <a href="#comments" onclick="load$hide();" title="查看评论"><i class="fa fa-comments-o"></i></a>
    <a href="#footer" title="转到底部"><i class="fa fa-arrow-down"></i></a>
</div>
<script>
    // Open in New Window
    
        var oOpenInNew = {
            
            
            
            
            
            
             archives: ".archive-article-title", 
             miniArchives: "a.post-list-link", 
            
             friends: "#js-friends a", 
             socail: ".social a" 
        }
        for (var x in oOpenInNew) {
            $(oOpenInNew[x]).attr("target", "_blank");
        }
    
</script>

    <script>
        var originTitle = document.title;
        var titleTime;
        document.addEventListener("visibilitychange", function() {
            if (document.hidden) {
                document.title = "(つェ⊂) 我藏好了哦~ " + originTitle;
                clearTimeout(titleTime);
            }
            else {
                document.title = "(*´∇｀*) 被你发现啦~ " + originTitle;
                titleTime = setTimeout(function() {
                    document.title = originTitle;
                }, 2000);
            }
        })
    </script>

<script async src="https://dn-lbstatics.qbox.me/busuanzi/2.3/busuanzi.pure.mini.js">
</script>
  </div>
</body>
</html>